<!--
- @fileName: userAction
- @author: LG
- @date: 2020/11/27 12:48
- @description：userAction
- @update: 2020/11/27 12:48
-->
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>注册/修改密码</title>
    <!--    引入网站图标   -->
    <link rel="icon" href="../images/favicon.ico" />
    <!--    重置默认样式   -->
    <link rel="stylesheet" href="../css/reset.css" />
    <!-- 公共样式 -->
    <link rel="stylesheet" href="../css/common.css" />
    <!-- 页面样式 -->
    <link rel="stylesheet" href="../css/userAction/userAction.css" />
  </head>
  <body>
    <div class="daoshu">成功，页面将在5秒后进入登录页...</div>
    <div class="tab">
      <div class="top">
        <ul>
          <li class="xuanzhong">注册</li>
          <li>修改密码</li>
        </ul>
      </div>
      <div class="bottom">
        <div class="item" style="display: block">
          <!-- 表单  -->
          <from class="list">
            <p>
              <input id="username" type="text" placeholder="用户名" />
            </p>
            <p>
              <input id="email" type="text" placeholder="邮箱" />
              <br />
              <i class="iconfont toblue">请输入邮箱</i>
            </p>
            <p>
              <input id="password1" type="password" placeholder="密码" />
              <br />

              <i class="iconfont toblue">请输入6~16位密码</i>
            </p>
            <p>
              <input id="password2" type="password" placeholder="确认密码" />
              <br />

              <i class="iconfont"></i>
            </p>

            <input id="btn" type="button" value="立即注册" />
          </from>
        </div>
        <div class="item">
          <!-- 表单  -->
          <from class="list">
            <p>
              <input id="resetUsername" type="text" placeholder="用户名" />
            </p>
            <p>
              <input id="resetEmail" type="text" placeholder="验证你的邮箱" />
              <br />
              <i class="iconfont toblue">请输入邮箱</i>
            </p>
            <p>
              <input id="resetPassword" type="password" placeholder="重置密码" />
              <br />

              <i class="iconfont toblue">请输入6~16位密码</i>
            </p>
            <input id="resetBtn" class="btn" type="button" value="修改密码" />
          </from>
        </div>
      </div>
    </div>

    <script src="../js/jquery.min.js"></script>
    <script src="../js/userAction.js"></script>
    <script>
      $(function () {
        $(".top li").click(function () {
          $(this).addClass("xuanzhong").siblings().removeClass("xuanzhong");
          var index = $(this).index();
          $(".bottom .item").eq(index).show().siblings().hide();
        });
      });
    </script>
  </body>
</html>
